from django.conf.urls import url
from rest_framework.routers import DefaultRouter

from apps.user.views import Login, UserLikes, User_Collect, UserPublish, UserHistory, UserFeedback, GetQiNiu, \
    UserAddCook

urlpatterns = [
    url(r'^cook/login$', Login.as_view()),
    url(r'^cook/like/(?P<pk>\d+)/$', UserLikes.as_view()),
    url(r'^user/collect/$', User_Collect.as_view()),
    url(r'^user/publish/$', UserPublish.as_view()),
    url(r'^user/history/$', UserHistory.as_view()),
    url(r'^user/feedback/$', UserFeedback.as_view()),
    url(r'^user/get_qiniu/$', GetQiNiu.as_view()),
    url(r'^user/addcook/$', UserAddCook.as_view()),

]

# router = DefaultRouter()
# router.register('cook/category', Cook_Category)
# urlpatterns += router.urls
